function texturePointer = textureMakerExample(textureObject, color)
% Make a two-by-two checkerboard with the given RGB color

% just make a 2x2 image and let the graphics card stretch it ad lib.
image = 255*ones(2,2,4);
for ii = 1:length(color)
    image(1,1,ii) = color(ii);
    image(2,2,ii) = color(ii);
end
texturePointer = Screen('MakeTexture', textureObject.windowNumber, image);